import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: a1227
 * Date: 2022-10-06
 * Time: 22:47
 */
public class Test {
    //JAVA19 修改Data类的定义——https://www.nowcoder.com/practice/bb89f943588c4a248675881f2e5cc761?tpId=220&tqId=2114441&ru=/exam/oj&qru=/ta/primary-grammar-java/question-ranking&sourceUrl=%2Fexam%2Foj%3Fpage%3D1%26tab%3D%25E8%25AF%25AD%25E6%25B3%2595%25E7%25AF%2587%26topicId%3D220
//    public static void main(String[] args) {
//        Scanner in = new Scanner(System.in);
//        // 注意 hasNext 和 hasNextLine 的区别
//        while (in.hasNextInt()) { // 注意 while 处理多个 case
//            int a = in.nextInt();
//            int b = in.nextInt();
//            System.out.println(a + b);
//        }
//    }

    //JAVA20 验证年龄——https://www.nowcoder.com/practice/fdb94493ebc34eef8d9b01dea47685b9?tpId=220&tqId=2109907&ru=/exam/oj&qru=/ta/primary-grammar-java/question-ranking&sourceUrl=%2Fexam%2Foj%3Fpage%3D1%26tab%3D%25E8%25AF%25AD%25E6%25B3%2595%25E7%25AF%2587%26topicId%3D220
//    class Person{
//        private int age;
//
//        public Person(int age){
//            this.age = age;
//        }
//
//        public void getAge(){
//            if(this.age < 0){
//                System.out.println(0);
//            }else if(this.age > 200){
//                System.out.println(200);
//            }else{
//                System.out.println(this.age);
//            }
//        }
//    }
//
//    public static void main(String[] args) {
//        Scanner in = new Scanner(System.in);
//        // 注意 hasNext 和 hasNextLine 的区别
//        while (in.hasNextInt()) { // 注意 while 处理多个 case
//            int age = in.nextInt();
//            Person person = new Person(age);
//            person.getAge();
//        }
//    }
}
